<?php
require './include/global.php';
require './include/validate.php';
require './include/all_left.php';

require_once './include/advisory_db.php';
//print_r($_SESSION);
$smarty->compile_check = true;


$reid    =    $_GET[reid];
$sql     =    "";
$nav = new buildNav;

$total = $DB->fetch_one_array("SELECT count(*) as count FROM pa_invite WHERE in_resumeid = '".$reid."' ORDER BY in_regtime DESC");
$nav->total_result = $total[count];
$sql     =    "SELECT * FROM pa_invite WHERE in_resumeid = '".$reid."' ORDER BY in_regtime DESC";
$nav->execute($sql);
$page = $nav->pagenav();

$i=0;
while($list = $DB->fetch_array($nav->sql_result)){
     $datajob[$i]                = $list;
	 $datajob[$i][in_jobstatus]  = $jobfillstatus[$list[in_jobstatus]] ;
	 $datajob[$i][in_regtime]    = @date("m/d/Y h:i:s A",$list[in_regtime]) ;
	 $datajob[$i][in_acttime]	 = ($list[in_acttime]=='0')?"N/A":@date("m/d/Y h:i:s A",$list[in_acttime]) ;
	 $i++;
}
//reid={$resumelist[custom].re_id}&rename={$resumelist[custom].name}

$smarty->assign("rename",$_GET[rename]);
$smarty->assign("reid",$reid);


$smarty->assign("invlist",$datajob);
$smarty->display('header.tpl');
$smarty->display('allleft.tpl');
$smarty->display('candidatecertification.tpl');
$smarty->display('footer.tpl');
?>